﻿@using System.Web.Optimization
<!DOCTYPE html>

<html>
<head>
    <title>@this.ViewBag.Title</title>
    <link rel="stylesheet" href="@Url.Content("~/skin/blog")" />
    <link rel="alternate" type="application/rss+xml" title="Vijay's Blog (RSS)" href="http://vijayt.com/rss" />
    <link rel="alternate" type="application/atom+xml" title="Vijay's Blog (ATOM)" href="http://vijayt.com/atom" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    @RenderSection("MetaSection", false)
    <!-- Dont indent scripts and styles, Bundling does not indent anyway -->
    <link rel="stylesheet" href="@Url.Content("~/Content/simpletree.css")" />
    @Styles.Render("~/bundles/common")
    @Scripts.Render("~/bundles/framework")
    <script type="text/javascript">
        var appPath = '@this.Url.Content("~/")';
    </script>
    <!-- End scripts -->

</head>
<body>
    <div id="page" class="hidden" data-bind="css: { hidden: false }">
        <div id="header">
            @Html.Action("Title", "Home")
            @Html.Partial("TabletAdControl")
        </div>
        <div id="middle">
            <div id="left">
                @Html.Action("Widget", "Category")
                @Html.Action("Widget", "Tag")
                @Html.Action("Widget", "Home")
            </div>
            <div id="center">
                @RenderBody()
            </div>
            <div id="right"></div>
            <div style="clear: both;">&nbsp;</div>
        </div>
        <div id="footer">
            &copy; 2016 LiteBlog
        </div>
    </div>

    <!-- Script Begin, No indent -->
    @Scripts.Render("~/bundles/utilities/public")
    @Scripts.Render("~/bundles/knockout/public")
    @RenderSection("ScriptSection", false)
    <script type="text/javascript">
        $(function () {
            var elem = document.getElementById('page');
            var isBound = ko.dataFor(elem) != null;
            if (!isBound)
                ko.applyBindings({}, elem);
        });
    </script>

    <!-- All the view models are loaded and bound -->
    @Scripts.Render("~/bundles/home")
    <!-- Script End -->
</body>
</html>
